#ifndef RIGGERVIEW_H
#define RIGGERVIEW_H

#include <QObject>
#include <QGraphicsView>
#include <QMouseEvent>
#include <QKeyEvent>
#include <QWheelEvent>
#include <QMenu>
#include <QAction>
#include <QTransform>

class RiggerView : public QGraphicsView
{
    Q_OBJECT
public:
    RiggerView(QWidget *parent=nullptr);

protected:
//    bool eventFilter(QObject *obj, QEvent *event) override;
    void wheelEvent(QWheelEvent *event) override;
    void mousePressEvent(QMouseEvent *event) override;
    void keyPressEvent(QKeyEvent *event) override;
//    void contextMenuEvent(QContextMenuEvent *event) override;

private slots:
    void viewZoomIn();
    void viewZoomOut();
    void viewZoomReset();

private:
//    QMenu *p_RightBtnMenu;
//    QList<QAction *> m_MenuActionList;
    QTransform m_Transform;
};

#endif // RIGGERVIEW_H
